 <div class="right_content">
	<p class="right_c_t">您的账户管理</p>
	<p class="right_c_tt">管理您的帐户资料，设置帐号安全，修改密码，管理收货地址，增强您的购物体验</p>
	<div class="right_form_t">反馈建议</div>
	<form id="form1" name="form1" action="userpassword-post.php" method="post">
	<table class="right_form_i">
		<tbody>
			<tr>
				<td><label>新密码:</label><input type="password" placeholder="6~14位字母或数学" name="password" id="password"></td>
			</tr>
			<tr>
				<td><label>重复:</label><input type="password" placeholder="请再输入一次密码" name="confirm_password" id="confirm_password"></td>
			</tr>
		</tbody>
	</table>
	<p class="acc_tip"></p>
	<div class="right_form_ctrl">
		<a href="usercenter.php" class="btn_cancel_r">取消</a>
		<a href="javascript:void()" id="btn_s" class="btn_s">保存</a>
		<span>如有问题，欢迎随时致电：020-87509004</span>
	</div>
	</form>
</div>
</div>
{literal} 
<script type="text/javascript">
$().ready(function() {
 $("#form1").validate({
	rules: 
	{		
		password: {
		required: true,
		minlength: 6
		},
		confirm_password: {
		required: true,
		minlength: 6,
		equalTo: "#password"
		}
	},
	messages: 
	{		
		password: {
		required: "请输入密码",
		minlength: jQuery.format("密码不能小于{0}个字符")
		},
		confirm_password: {
		required: "请输入确认密码",
		minlength: "确认密码不能小于5个字符",
		equalTo: "两次输入密码不一致"
		}
	},
	errorPlacement:function(error, element) { 
		 error.appendTo( $(".acc_tip") );
	}
  });
  $('#btn_s').click(function(){
		if($("#form1").validate()){
		 $("#form1").submit();
	 }
	});
});
</script>
{/literal} 